<?php 
	$isinfo = $this->countModules('demo'); 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/websoftware/js/jquery.min.js"></script>
	<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/websoftware/js/jquery.carouFredSel-2.1.3.js"></script>
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/websoftware/js/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/websoftware/js/jquery-ui-1.8.16.custom.min.js"></script>
	
	

	<script type="text/javascript">
	jQuery(document).ready(function($) {
		var formxx = "#subcribe";
	
	
		$(formxx).submit(function() {
			var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
			url = $(this).attr( 'action' );
			
				$(formxx+' #component30').css("display", "none");
			
			//Kiem tra noi dung input
			if($(formxx+' #maillist').val()=="" || !emailReg.test($(formxx+' #maillist').val()))		
			{
				if($(formxx+' #maillist').val()=="")		
				{
					$(formxx+' #component30').css("display", "block");
				}
				if(!emailReg.test($(formxx+' #maillist').val()))		
				{
					$(formxx+' #component30').css("display", "block");
				}
			}
			else
			{				
				
				// Cho hien dialog thong bao cho
				$('#dialog-message p').html('<div style="padding: 0  20px; text-align: center;"><img style="margin: 0 auto" src="<?php echo $this->baseurl ?>/templates/websoftware/images/ajax-loading.gif" /><br /> Đang gửi thông tin, vui lòng chờ !</div>');
				$( "#dialog:ui-dialog" ).dialog( "destroy" );	
				$( "#dialog-message" ).dialog({
					modal: true,
					buttons: {
						Ok: function() {
							$( this ).dialog( "close" );
						}
					}
				});		
				
				// Gui noi dung de xu ly
				$.ajax({
					  type: 'POST',
					  url: url,
					  data: $(this).serialize(),
					  success: function(data) {					  
							
								// Cho hien dialog thanh cong
								$('#dialog-message p').html('<div style="padding: 0  20px; text-align: center;"><p><strong>Cám ơn bạn đã gửi email. Chúng tôi sẽ liên hệ trong thời gian sớm nhất</strong></p></div>');
								$( "#dialog:ui-dialog" ).dialog( "destroy" );
							
								$( "#dialog-message" ).dialog({
									modal: true,
									buttons: {
										Ok: function() {
											$( this ).dialog( "close" );
										}
									}
								});
								
								//Reset all input in form
								$(formxx).each(function(){this.reset();});
							
							}
						  
					});				
			}
			return false;
	});
});
	</script>
	
	<jdoc:include type="head" />
	
	<link href="<?php echo $this->baseurl ?>/templates/websoftware/css/style.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="<?php echo $this->baseurl ?>/templates/websoftware/css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="<?php echo $this->baseurl ?>/templates/websoftware/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css"  />
	<link href="<?php echo $this->baseurl ?>/templates/websoftware/css/tab.css" rel="stylesheet" type="text/css"  />
	<link href="<?php echo $this->baseurl ?>/templates/websoftware/css/pml.css" rel="stylesheet" type="text/css"  />
	<link href="<?php echo $this->baseurl ?>/templates/websoftware/css/extranews.css" rel="stylesheet" type="text/css"  />
	<link href="<?php echo $this->baseurl ?>/templates/websoftware/css/_dhtmltooltip.css" rel="stylesheet" type="text/css"  />
	<link href="<?php echo $this->baseurl ?>/templates/websoftware/css/k2_new.css" rel="stylesheet" type="text/css"  />
	<!--[if IE 8]>
	<link type="text/css" rel="stylesheet" media="all" href="<?php echo $this->baseurl ?>/templates/websoftware/css/ie8-fixes.css" />
	<![endif]-->
</head>
<body>




<div id="dialog-message" title="Hệ thống">
	<p>
		
	</p>
</div>






<div id="wrapper">

	<div id="header-stretch">
		<div id="header">
			<h1><a href="index.php">Software HK</a></h1>
			
			<jdoc:include type="modules" name="mainmenu" />

			<div id="flag">
				<ul>
					<li><a href="#"><img src="<?php echo $this->baseurl ?>/templates/websoftware/images/vn.png" alt="" /></a></li>
					<li><a href="#"><img src="<?php echo $this->baseurl ?>/templates/websoftware/images/usa.png" alt="" /></a></li>
				</ul>
			</div>
			<div >
				<div class="bg2"></div>
				<div class="bg3"><jdoc:include type="modules" name="slideshow" /></div>
					
				<div class="bg4"></div>
			
				<div class="slogan">Hoàng Khang mang đến <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; giải pháp toàn diện</div>
				<div class="mockup"><img src="<?php echo $this->baseurl ?>/templates/websoftware/images/mockup.png" alt="" /></div>
				
				<div class="searchs">
					<jdoc:include type="modules" name="search" />
				</div>
				</div>
			</div><!--end header-->
	</div><!--header-stretch-->
	<jdoc:include type="modules" name="breadcrumbs" />
	<div id="main-container">
	
	<?php if($isinfo) { ?>
		<div id="left">
		
				<jdoc:include type="modules" name="intro" />	

				<jdoc:include type="modules" name="carousel" />
				
				<jdoc:include type="component" />
							
				<jdoc:include type="modules" name="service" />
				
		</div><!-- left-->
			
		<div id="right">
		
				<jdoc:include type="modules" name="latest" />

				<jdoc:include type="modules" name="info" />
				
				<div id="map">
					<jdoc:include type="modules" name="map" />
				</div>
				
				<jdoc:include type="modules" name="support" />

				<div id="mail">
					<jdoc:include type="modules" name="minifrontpage" />
				</div>
				
				<jdoc:include type="modules" name="demo" />
				

				

	
		</div><!--end right-->
		<?php } else { ?>
		<div id="left1">
			<div id="fb_like" style="display: none">
				<jdoc:include type="modules" name="facebook" />
			</div>
			<jdoc:include type="component" />
	
		</div><!--end left1-->
		
		<div id="right1">
			<jdoc:include type="modules" name="support" />
			
			<div id="mail1">
				<jdoc:include type="modules" name="minifrontpage" />
			</div>
			
			
			
		</div><!--end right1-->
		<?php } ?>
		
	</div><!--end main-container-->
	
	<div id="footer">
				<div class="category">
				
					<jdoc:include type="modules" name="cate" />

				</div>
				
				<div class="category">
		
					<jdoc:include type="modules" name="mailing" />
					
				</div><!--mail-->

				<div class="category">
					<h2>Thông tin liên hệ</h2>
					<p>
					Công ty giải pháp Công Nghệ Thông Tin và Truyền Thông Hoàng Khang<br /><br /></p>
					<ul>
						<li class="address">144 Nguyễn Văn Lượng, P17, Gò Vấp, TPHCM</li>
						<li class="telephone">(84)(8)39847690</li>
						<li class="mail_info"><a href="software@hoangkhang.com.vn">software@hoangkhang.com.vn</a></li>
					</ul>	
				</div><!--info-->				
				
		<div id="nav4">
			<div><img src="<?php echo $this->baseurl ?>/templates/websoftware/images/bottom_line.jpg" alt="" /></div>
			<div style="padding-top:15px">

				<jdoc:include type="modules" name="bottommenu" />
				
				<div id="copyright">© Copyright 2008 - 2012. hoangkhang.com.vn. All Rights Reserved</div>
			</div>
		</div>
		
	</div><!--footer-->
	


</div><!--wrapper-->
</body>
</html>